set(glew_PREFIX "${CMAKE_SOURCE_DIR}/glew")
set(glew_src "${CMAKE_SOURCE_DIR}/build/glew-prefix/src/glew/build/cmake")
#set(glew_src "${CMAKE_SOURCE_DIR}/build/glew")
ExternalProject_Add( glew
  URL https://github.com/nigels-com/glew/releases/download/glew-2.2.0/glew-2.2.0.zip
  DOWNLOAD_NAME glew_2.2.0.zip
  #SOURCE_DIR
  #  ${glew_src}
  CONFIGURE_COMMAND ${CMAKE_COMMAND} ${glew_src} -DCMAKE_INSTALL_PREFIX=${glew_PREFIX} -DCMAKE_BUILD_TYPE=Release
  #INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} install
  #CCMAKE_ARGS
  #  -S ${glew_src}
  #  -DCMAKE_INSTALL_PREFIX=${glew_PREFIX}
  #  -DCMAKE_BUILD_TYPE=Release
)